package xyz.labmem.lipx.core.tool

import cn.hutool.crypto.SecureUtil
import xyz.labmem.lipx.core.context.Secret

fun pwdJoinSalt(pwd: String): String {
    val key = Secret.getKeyStr()!!
    return SecureUtil.hmacMd5(key).digestHex("${key.substring(0, 10)}-$pwd-${key.substring(10, 20)}")
}

